# 6.16
import copy

aTuple = tuple('bar')
print(aTuple)
aTuple = 0, 1, 2, 3, aTuple[1]
print(aTuple)
print(aTuple[1:4])
print(aTuple[:3])
aTuple = (1, 2, 3) + (3, 4, 5)
print(aTuple)

aTuple = (1, 2, ['abc', 456])
aTuple[2][0] = 111
print(aTuple)

print(4, 2 < 3, 5)
print((4, 2) < (3, 5))

print(type(('xyz')))
print(type(('xyz',)))

# 6.20
person = ['name', ['slave', 100.00]]
hubby = person[:]
wifey = list(person)
print(hubby, wifey)
hubby[0] = 'joe'
wifey[0] = 'jane'
hubby[1][1] = 50.00
print(hubby, wifey)
wifey = copy.deepcopy(person)
print(hubby, wifey)
hubby[1][1] = 80.0
wifey[1][1] = 90.0
print(hubby, wifey)
